{% extends "base.html" %}
{% block title %}公文审核{% endblock %}
{% block content %}
<div class="card">
  <div class="card-header">
    <h3>公文审核</h3>
  </div>
  <div class="card-body">
    <form method="post" action="{{ url_for('document_audit_commit') }}">
      {{ form.csrf_token }}
      <input type="hidden" name="document_id" value="{{ form.document_id.data }}">
      <div class="form-group">
        {{ form.title.label }}
        <input type="text" class="form-control" id="title" name="title" value="{{ form.title.data }}" readonly>
      </div>
      <div class="form-group">
        {{ form.content.label }}
        <textarea class="form-control" id="content" name="content" rows="6" readonly>{{ form.content.data }}</textarea>
      </div>
      <div class="form-group">
        {{ form.author_name.label }}
        <input type="text" class="form-control" id="author_name" name="author_name" value="{{ form.author_name.data }}" readonly>
      </div>
      <div class="form-group">
        {{ form.drafting_unit.label }}
        <input type="text" class="form-control" id="drafting_unit" name="drafting_unit" value="{{ form.drafting_unit.data }}" readonly>
      </div>
      <div class="form-group">
        {{ form.receiving_unit.label }}
        <input type="text" class="form-control" id="receiving_unit" name="receiving_unit" value="{{ form.receiving_unit.data }}" readonly>
      </div>
      <div class="form-group">
        {{ form.status.label }}
        <input type="text" class="form-control" id="status" name="status" value="{{ form.status.data }}" readonly>
      </div>
      <div class="form-group">
        {{ form.security_level.label }}
        <input type="text" class="form-control" id="security_level" name="security_level" value="{{ form.security_level.data }}" readonly>
      </div>
      <div class="form-group">
        {{ form.modified_date.label }}
        <input type="text" class="form-control" id="modified_date" name="modified_date" value="{{ form.modified_date.data }}" readonly>
      </div>
      <div class="form-group">
        {{ form.audit_result.label }}
        {{ form.audit_result(class_="form-control") }}
      </div>
      <button type="submit" class="btn btn-primary">提交审核</button>
    </form>
  </div>
</div>
{% endblock %}